package com.xjoyt.pay.share.controllers;

import java.util.Map;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.xjoyt.pay.commons.MoneyTypeUtils;
import com.xjoyt.pay.commons.PayTypeUtils;
import com.xjoyt.pay.controllers.AbstractController;
import com.xjoyt.pay.share.interfaces.CommonContract;
import com.xjoyt.pay.vo.MoneyType;
import com.xjoyt.pay.vo.PayType;

@RestController
@RequestMapping("common")
public class CommonController extends AbstractController implements CommonContract {

	@Override
	public Map<PayType, String> getAllPayType() {
		return PayTypeUtils.getAllPayType();
	}

	@Override
	public Map<MoneyType, String> getAllMoneyType() {
		return MoneyTypeUtils.getAllMoneyType();
	}

}
